package com.gzist.blog_system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gzist.blog_system.domain.Article;
import com.gzist.blog_system.domain.result.PageBean;

import java.util.List;

/**
 *
 */
public interface ArticleService extends IService<Article> {

    /*
     * @description:
     *  分页查询文章业务
     * @param: [pageNum, pageSize]
     **/
    PageBean<Article> queryPage(Integer pageNum, Integer pageSize);

    /*
     * @description:
     *  发布文章业务
     **/
    boolean publish(Article article);

    /*
     * @description:
     *  统计热度排名前十的文章信息
     **/
    List<Article> getHeatArticles();

}
